package com.hou.hpsj_springboot.service;

import com.hou.hpsj_springboot.bean.Users;
import com.hou.hpsj_springboot.entity.R;


import javax.mail.MessagingException;
import java.io.UnsupportedEncodingException;


public interface LoginService {
//    ArrayList<Users> get();
//    void update(Users users);
/**
 * 业务层
 * 获取验证码
 * @param email
 * @return
 */
R getCaptcha(String email) throws MessagingException, UnsupportedEncodingException;
    /**
     * 业务层
     * 注册或登录
     * @param user
     */
    void registerOrLogin(Users user);
}
